#ifndef GAME_PIECE_H
#define GAME_PIECE_H

#include "BaseObject.h"

class CSGD_TextureManager;

#define IMAGE_SIZE	64

enum PIECE_TYPE	{PIECE_TRACK_STRAIGHT, PIECE_TRACK_CURVE, PIECE_BOMB};

class GamePiece : public BaseObject
{
public:
	GamePiece();
	GamePiece(PIECE_TYPE _type, bool _playStatus = false);
	~GamePiece();

	void Update(float _dT);
	void Render();

	RECT GetCollisionRect();
	bool CheckCollision(BaseInterface* _base);

	int GetPieceType()			{return pieceType;}
	bool GetPlayStatus()		{return inPlay;}

	void SetPieceType(PIECE_TYPE _type)		{pieceType = _type;}
	void SetPlayStatus(bool _status)		{inPlay = _status;}

private:
	CSGD_TextureManager* texManager;

	int pieceType;
	bool inPlay;

};

#endif	// GAME_PIECE_H